//
//  HMAboutController.m
//  HeartMark
//
//  Created by rimi on 16/11/9.
//  Copyright © 2016年 黄华强. All rights reserved.
//

#import "HMAboutController.h"


@interface HMAboutController ()

@end

@implementation HMAboutController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.navigationController.navigationBar.tintColor = [UIColor whiteColor];
    
    self.view.backgroundColor = [UIColor whiteColor];
    
    UIView *segView = [[UIView alloc]initWithFrame:CGRectMake(SCREEN_WIDTH/3, 94,SCREEN_WIDTH/3, 1)];
    segView.backgroundColor = [UIColor lightGrayColor];
    [self.view addSubview:segView];
    
    UITextView *aboutTextView = [[UITextView alloc] initWithFrame:CGRectMake(SCREEN_WIDTH * 0.04, 120, SCREEN_WIDTH * 0.92, SCREEN_HEIGHT - 120)];
    [aboutTextView setEditable:NO];
    
    NSMutableParagraphStyle *paragraphStyle = [[NSMutableParagraphStyle alloc] init];
    paragraphStyle.lineSpacing = 8; //行距
    paragraphStyle.firstLineHeadIndent = 0;
    
    NSDictionary *attributes = @{ NSFontAttributeName:[UIFont systemFontOfSize:SCREEN_WIDTH * 0.04], NSParagraphStyleAttributeName:paragraphStyle};
    NSString *str1 = @"        心迹是一个简单,方便,快捷的笔记软件。好记性不如烂笔头,当你突发创作灵感,或者偶然在网上看到一个有趣的段子,又或者你需要记录需要被记住的事件,可以通过点击右下角的记录按钮创建文档记录下来。用户可以关注其它优秀的用户，便于阅读，也可以通过热门榜单和当日最新查询自己喜爱的阅读，操作的整体流程和步骤都在数秒内可以完成";
    
    
    aboutTextView.attributedText = [[NSAttributedString alloc]initWithString: str1 attributes:attributes];
    [self.view addSubview:aboutTextView];
}



@end
